package house.entity;

import javax.persistence.*;
import java.util.List;

@Entity
public class House extends BasicEntity {

    private String rentType;         // 出租类型
    private String style;            // 户型
    private String orientation;     // 朝向
    private float area;              // 面积
    private String floor;            // 楼层
    private String region;           // 区域
    private String village;          // 小区
    private String address;          // 地址
    private String facility;         // 周边设施
    private String traffic;          // 交通

    private float price;             // 租金
    private float deposit;           // 押金
    private String period;            // 租期
    private String decoration;       // 装修情况
    private String cleaning;         // 保洁

    @ManyToOne
    private User owner;              // 房东

    @ManyToMany
    private List<User> tenant;       // 租户
    @OneToMany
    private List<HousePic> pics;              // 图片
    @OneToMany
    private List<Device> devices;

    public String getRentType() {
        return rentType;
    }

    public void setRentType(String rentType) {
        this.rentType = rentType;
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }

    public String getOrientation() {
        return orientation;
    }

    public void setOrientation(String orientation) {
        this.orientation = orientation;
    }

    public float getArea() {
        return area;
    }

    public void setArea(float area) {
        this.area = area;
    }

    public String getFloor() {
        return floor;
    }

    public void setFloor(String floor) {
        this.floor = floor;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getVillage() {
        return village;
    }

    public void setVillage(String village) {
        this.village = village;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getFacility() {
        return facility;
    }

    public void setFacility(String facility) {
        this.facility = facility;
    }

    public String getTraffic() {
        return traffic;
    }

    public void setTraffic(String traffic) {
        this.traffic = traffic;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public float getDeposit() {
        return deposit;
    }

    public void setDeposit(float deposit) {
        this.deposit = deposit;
    }

    public String getPeriod() {
        return period;
    }

    public void setPeriod(String period) {
        this.period = period;
    }

    public String getDecoration() {
        return decoration;
    }

    public void setDecoration(String decoration) {
        this.decoration = decoration;
    }

    public String getCleaning() {
        return cleaning;
    }

    public void setCleaning(String cleaning) {
        this.cleaning = cleaning;
    }

    public User getOwner() {
        return owner;
    }

    public void setOwner(User owner) {
        this.owner = owner;
    }

    public List<User> getTenant() {
        return tenant;
    }

    public void setTenant(List<User> tenant) {
        this.tenant = tenant;
    }

    public List<HousePic> getPics() {
        return pics;
    }

    public void setPics(List<HousePic> pics) {
        this.pics = pics;
    }

    public List<Device> getDevices() {
        return devices;
    }

    public void setDevices(List<Device> devices) {
        this.devices = devices;
    }
}
